-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background monitor #198
Background monitor #198
Conversation
Move the fdo support code behind an api. This is in preparation for using it from the background portal backend.
One issue with this: we are currently getting the wrong information from gnome-shell. It puts desktop filenames into the windows list, which we misinterpret as app ids. |
Add a portal backend for getting the list of active applications, and for showing a notification about apps that are running in the background.
d3f0171
to
8b306a7
Compare
gnome-shell issue: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1289 |
324d4c7
to
de56b42
Compare
Implement the EnableAutostart method by generating an autostart file for the application in XDG_CONFIG_HOME/autostart.
de56b42
to
e50ce25
Compare
The gnome-shell introspection api returns us desktop file names instead of proper app ids. Work around this by looking for X-Flatpak.
src/background.c
Outdated
goto out; | ||
} | ||
|
||
commandline = g_strjoinv (" ", (char **)arg_commandline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is where we should do any required escaping, rather than in the portal.
Use flags for autostart
More flexible NotifyBackground api
Add an allow-once option
src/background.c
Outdated
goto out; | ||
} | ||
|
||
commandline = g_strjoinv (" ", (char **)arg_commandline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You still need to escape here
quote commandline
This is an implementation of the platform-dependent parts of flatpak/xdg-desktop-portal#319